package com.parking.status.sync.netty.entity;

/**
 * Created by Administrator on 2015/9/24.
 */
public class RequestParkingCheckin extends RequestPre {

    public RequestParkingCheckin() {}

    public RequestParkingCheckin(int seqno, String clientId, String tsn, String sim, String psam, String sysVer, String appVer) {
        super(seqno, clientId, tsn, sim, psam, sysVer, appVer);
        this.code = MessageType.CODE_PARKING_CHECKIN;
    }

    public RequestParkingCheckin(int seqno, String clientId, String tsn, String sim, String psam, String sysVer, String appVer, String parkingSpotId, String platformId, String uid, String pwd, String longi, String lati, String batchCode, String name, String address, String opentime, String price) {
        this(seqno, clientId, tsn, sim, psam, sysVer, appVer);
        this.parkingSpotId = parkingSpotId;
        this.platformId = platformId;
        this.uid = uid;
        this.pwd = pwd;
        this.longi = longi;
        this.lati = lati;
        this.batchCode = batchCode;
        this.name = name;
        this.address = address;
        this.opentime = opentime;
        this.price = price;
    }

    //停车点编号
    private String parkingSpotId;
    //平台编号
    private String platformId;
    //工号
    private String uid;
    //密码
    private String pwd;
    //经度
    private String longi;
    //纬度
    private String lati;
    //批次号
    private String batchCode;
    //停车点名称
    private String name;
    //停车点地址
    private String address;
    //服务时段
    private String opentime;
    //收费标准
    private String price;

    public String getParkingSpotId() {
        return parkingSpotId;
    }

    public void setParkingSpotId(String parkingSpotId) {
        this.parkingSpotId = parkingSpotId;
    }

    public String getPlatformId() {
        return platformId;
    }

    public void setPlatformId(String platformId) {
        this.platformId = platformId;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getLongi() {
        return longi;
    }

    public void setLongi(String longi) {
        this.longi = longi;
    }

    public String getLati() {
        return lati;
    }

    public void setLati(String lati) {
        this.lati = lati;
    }

    public String getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOpentime() {
        return opentime;
    }

    public void setOpentime(String opentime) {
        this.opentime = opentime;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }


    public void forTest() {
        uid = "CCC";

        //批次号
        batchCode = "EEE";

        //停车点编号
        parkingSpotId = "C01";

        //平台编号
        platformId = "DDD";


        this.commRequest = new RequestCommon();
        this.commRequest.setAppVer("1.0");
        this.commRequest.setClientId("000");
        this.commRequest.setPsam("X1111");
        this.commRequest.setSim("X2222");
        this.commRequest.setSysVer("android");
        this.commRequest.setTsn("X3333");

    }
}
